package chixing.day10.work;

public class EnterpriseOrder extends Order {
    private String companyDetails;
    private String taxId;

    @Override
    public void processOrder() {
        // 企业订单特定的处理逻辑
    }

    @Override
    protected Order createSplitOrder(int quantity) {
        EnterpriseOrder newOrder = new EnterpriseOrder();
        newOrder.orderId = this.orderId + "-split"; // 生成新的订单ID
        newOrder.quantity = quantity;
        newOrder.customerInfo = this.customerInfo;
        newOrder.companyDetails = this.companyDetails;
        newOrder.taxId = this.taxId;
        return newOrder;
    }

    public String getCompanyDetails() {
        return companyDetails;
    }

    public void setCompanyDetails(String companyDetails) {
        this.companyDetails = companyDetails;
    }

    public String getTaxId() {
        return taxId;
    }

    public void setTaxId(String taxId) {
        this.taxId = taxId;
    }
}